<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在此处插入标题</title>
</head>
<body>
<%
	pageContext.setAttribute("msg","data in pageContext");
 	request.setAttribute("msg", "帅哥in request");
 	session.setAttribute("msg", "帅哥in session");
 	application.setAttribute("msg", "帅哥in application");
 	System.out.println(pageContext.getAttribute("msg"));
 	request.getRequestDispatcher("b.jsp").forward(request, response);
 %>
</body>
</html>